package cn.angleline.cloudhub.easbi.eas.entity

import java.sql.Timestamp
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

@Entity
@Table(name = "T_BG_BGCTRLRECORD")
data class TBgBgCtrlRecord(
        @Id
        @Column(name = "FID")
        val fid: String? = null,

        @Column(name = "FCREATORID")
        val fcreatorid: String? = null,

        @Column(name = "FCREATETIME")
        val fcreatetime: Timestamp? = null,

        @Column(name = "FLASTUPDATEUSERID")
        val flastupdateuserid: String? = null,

        @Column(name = "FLASTUPDATETIME")
        val flastupdatetime: Timestamp? = null,

        @Column(name = "FCONTROLUNITID")
        val fcontrolunitid: String? = null,

        @Column(name = "FBGDATAID")
        val fbgdataid: String? = null,

        @Column(name = "FBILLID")
        val fbillid: String? = null,

        @Column(name = "FBILLNAME")
        val fbillname: String? = null,

        @Column(name = "FBILLNUMBER")
        val fbillnumber: String? = null,

        @Column(name = "FBILLALIAS")
        val fbillalias: String? = null,

        @Column(name = "FBILLTYPE")
        val fbilltype: String? = null,

        @Column(name = "FBIZDATE")
        val fbizdate: Timestamp? = null,

        @Column(name = "FACTUALAMOUNT")
        val factualamount: Long? = 0,

        @Column(name = "FBILLOPERATE")
        val fbilloperate: String? = null,

        @Column(name = "FBGPERIODID")
        val fbgperiodid: String? = null,

        @Column(name = "FITEMNAME")
        val fitemname: String? = null,

        @Column(name = "FBGTRACETYPE")
        val fbgtracetype: Int? = 0,

        @Column(name = "FORGUNITID")
        val forgunitid: String? = null,

        @Column(name = "FBGSCHEMEID")
        val fbgschemeid: String? = null,

        @Column(name = "FITEMFORMULA")
        val fitemformula: String? = null,

        @Column(name = "FPAYSTATE")
        val fpaystate: Int? = 0,

        @Column(name = "FISCOLLECTED")
        val fiscollected: Int? = 0,

        @Column(name = "FDAYDATE")
        val fdaydate: Timestamp? = null,

        @Column(name = "FACTUALTYPE")
        val factualtype: Int? = 0,

        @Column(name = "FBILLSOURCEORGUNITID")
        val fbillsourceorgunitid: String? = null
)